<div class="note">
	<div class="title"><h2 <?php echo ($data->top) ? 'style="color:#FF0000"' : ''?>><?php echo CHtml::encode($data->title); ?></h2></div>
	<div class="content" style="display:none" name="<?php echo $this->createUrl('view', array('id' => $data->id))?>"><?php //echo $data->content; ?></div>
	<div class="meta">
		<?php echo CHtml::link($data->category->name, array('/post/index', 'cid' => $data->cid), array('class' => 'tag'))?>
		<?php echo CHtml::link('Edit', array('update', 'id' => $data->id), array('class' => 'edit', 'title' => 'edit'))?>
		<?php echo CHtml::link('View', array('view', 'id' => $data->id), array('class' => 'view', 'title' => 'view'))?>
        <?php echo CHtml::link('Delete', array('delete', 'id' => $data->id, 'goback' => urlencode(Yii::app()->request->url)), array('class' => 'delete', 'title' => 'delete'))?>
		<?php foreach($data->tags as $tag):?>
		<?php echo CHtml::link($tag, array('/post/index', 'tag' => $tag), array('class' => 'tags', 'title' => 'tags'))?>
		<?php endforeach;?>
		<span class="time"><?php echo Yii::app()->format->datetime(strtotime($data->add_time)); ?></span>
		<?php  echo CHtml::link('Publish', array('publish', 'id' => $data->id, 'o' => 1), array('class' => 'publish', 'style' => ($data->publish) ? 'display:none' : ''));?>
		<?php  echo CHtml::link('Close Publish', array('publish', 'id' => $data->id), array('class' => 'publish-close', 'style' => ($data->publish) ? '' : 'display:none'));?>
	</div>
</div>